﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GPS.Models
{
    public class JsonDateDKH_PT_AUTO
    {
        public string KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public decimal? ID { get; set; }
        public string PT_MA { get; set; }
        public decimal? PT_SOHV { get; set; }
        // public byte[] PT_HINHANH { get; set; }
        public string PT_HINHANH_URL
        {
            get
            {
                //String img64 = Convert.ToBase64String(this.PT_HINHANH);
                //string img64Url = string.Format("data:image/" + this.PT_HINHANH + ";base64,{0}", img64);
                string imageBase64Data = string.Empty;
                //if (this.PT_HINHANH != null)
                //    imageBase64Data = Convert.ToBase64String(this.PT_HINHANH);
                //string imageDataURL = string.Format("data:image/jpg;base64,{0}", imageBase64Data);
                return imageBase64Data;
            }
        }
    }

    public class JsonDataDKH_PT_AUTO
    {
        public string KH_PT_DVGTVT_MA { get; set; }
        public string KH_PT_AUTO_KH_MA { get; set; }
        public decimal KH_PT_AUTO_SOHV { get; set; }
        public string KH_PT_AUTO_MOTA { get; set; }

        public string[] KH_PT_AUTO_KH_MAs { get; set; }
    }

    public class JsonDataDKH_PT
    {
        public string KH_PT_DVGTVT_MA { get; set; }
        public string KH_PT_KH_MA { get; set; }
        public string[] KH_PT_PT_MAs { get; set; }
    }

    public class JsonDataDKH_GV
    {
        public string KH_GV_DVGTVT_MA { get; set; }
        public string KH_GV_KH_MA { get; set; }

        public string KH_PT_GV_PT_MA { get; set; }

        public string[] KH_GV_GV_MAs { get; set; }
    }

    public class JsonDataDKH_HV
    {
        public string KH_HV_DVGTVT_MA { get; set; }
        public string KH_HV_KH_MA { get; set; }
        public string KH_HV_GV_MA { get; set; }
        public string KH_HV_PT_MA { get; set; }
        public string[] KH_HV_HV_MAs { get; set; }
    }

    public class JsonDataDKH_GVinPT
    {
        public string GV_MA { get; set; }
        public string GV_HOTEN { get; set; }
        public string GV_SOCMT { get; set; }
        public string GV_HANGDT_MA { get; set; }
        public string GV_HTDTAO_MA { get; set; }
        public string PT_MA { get; set; }
        //    public byte[] GV_ANHCD { get; set; }
        public string GV_ANHCD_URL
        {
            get
            {
                //String img64 = Convert.ToBase64String(this.GV_ANHCD);
                //string img64Url = string.Format("data:image/" + this.GV_ANHCD + ";base64,{0}", img64);
                string imageBase64Data = string.Empty;
                //if (this.GV_ANHCD != null)
                //    imageBase64Data = Convert.ToBase64String(this.GV_ANHCD);
                //  string imageDataURL = string.Format("data:image/jpg;base64,{0}", imageBase64Data);
                return imageBase64Data;
            }
        }

    }

    public class JsonDataDKH_GV_HV_IN_PT
    {
        public List<JsonDataDKH_HVinKH> lstHV_IN_PT
        { get; set; }

        public List<JsonDataDKH_GVinPT> lstGV_IN_PT
        { get; set; }

    }
    public class JsonDataDKH_GVs
    {
        public List<JsonDataDKH_GVinPT> lstGV_KH_IN
        { get; set; }

        public List<JsonDataDKH_GVinPT> lstGV_KH_NOTIN
        { get; set; }

    }

    public class JsonDataDKH_HVinKH
    {
        public string HV_MA { get; set; }
        public string HV_HOTEN { get; set; }

        public string HV_NGAYSINH { get; set; }

        public string HV_HANGDT_MA { get; set; }

        public string HV_GIOITINH { get; set; }
        public string HV_SOCMT { get; set; }

        public string HV_PT_MA { get; set; }
    }

    public class JsonDataDKH_PTinKH
    {
        public string KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public string KH_HANGDT { get; set; }
        public string KH_HANGGPLX { get; set; }
        public string KH_SOLUONGHOVIEN_1_PT { get; set; }
        public string KH_NGAY_KG { get; set; }
        public string KH_NGAY_KT { get; set; }

        public string KH_PT_GV_MA { get; set; }
        public string GV_HOTEN { get; set; }

        public string PT_MA { get; set; }
        // public byte[] PT_HINHANH { get; set; }
        public string PT_HINHANH_URL
        {
            get
            {
                //String img64 = Convert.ToBase64String(this.PT_HINHANH);
                //string img64Url = string.Format("data:image/" + this.PT_HINHANH + ";base64,{0}", img64);
                string imageBase64Data = string.Empty;
                //if (this.PT_HINHANH != null)
                //    imageBase64Data = Convert.ToBase64String(this.PT_HINHANH);
                //string imageDataURL = string.Format("data:image/jpg;base64,{0}", imageBase64Data);
                return imageBase64Data;
            }
        }

    }
    public class JsonDataDKH_PTinKH_1
    {
        public string KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public string KH_HANGDT { get; set; }
        public string KH_HANGGPLX { get; set; }
        public string KH_SOLUONGHOVIEN_1_PT { get; set; }
        public string KH_NGAY_KG { get; set; }
        public string KH_NGAY_BG { get; set; }

        public string Options { get; set; }

        public string OptionsWeek { get; set; }

        public string SO_HOVIEN { get; set; }
    }


    public class JsonDataDKH_GVinKH_LT_1
    {
        public string KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public string KH_HANGDT { get; set; }
        public string KH_HANGGPLX { get; set; }
        public string KH_SOLUONGHOVIEN_KH { get; set; }
        public string KH_NGAY_KG { get; set; }
        public string KH_NGAY_BG { get; set; }

        public string OptionsGV { get; set; }

        public string OptionsWeek { get; set; }

        public string SO_HOVIEN { get; set; }
    }

    public class JsonDataDKH_GVinKH_LT
    {
        public string GV_MA { get; set; }
        public string GV_HOTEN { get; set; }
        public string GV_HANGDT_MA { get; set; }
        public string GV_ANHCD_URL
        {
            get
            {
                //String img64 = Convert.ToBase64String(this.GV_ANHCD);
                //string img64Url = string.Format("data:image/" + this.GV_ANHCD + ";base64,{0}", img64);
                string imageBase64Data = string.Empty;
                //if (this.GV_ANHCD != null)
                //    imageBase64Data = Convert.ToBase64String(this.GV_ANHCD);
                //  string imageDataURL = string.Format("data:image/jpg;base64,{0}", imageBase64Data);
                return imageBase64Data;
            }
        }
    }

    public class JsonDataDKH_GVinKH_TH_1
    {
        public string KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public string KH_HANGDT { get; set; }
        public string KH_HANGGPLX { get; set; }
        public string KH_SOLUONGHOVIEN_KH { get; set; }
        public string KH_NGAY_KG { get; set; }
        public string KH_NGAY_BG { get; set; }

        public string OptionsPT_GV { get; set; }

        public string OptionsWeek { get; set; }

        public string SO_HOVIEN { get; set; }
    }
    public class JsonDataDKH_GVinKH_TH
    {
        public string GV_MA { get; set; }
        public string GV_HOTEN { get; set; }
        public string GV_HANGDT_MA { get; set; }
        public string GV_ANHCD_URL
        {
            get
            {
                //String img64 = Convert.ToBase64String(this.GV_ANHCD);
                //string img64Url = string.Format("data:image/" + this.GV_ANHCD + ";base64,{0}", img64);
                string imageBase64Data = string.Empty;
                //if (this.GV_ANHCD != null)
                //    imageBase64Data = Convert.ToBase64String(this.GV_ANHCD);
                //  string imageDataURL = string.Format("data:image/jpg;base64,{0}", imageBase64Data);
                return imageBase64Data;
            }
        }

        public string PT_MA { get; set; }
    }
}